import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/hotnew',
    name: 'hotnew',
    component: () => import('@/views/manager/HotNew.vue')
  },
  {
    path: '/user',
    name: 'user',
    component: () => import('@/views/manager/User.vue')
  },
  {
    path: '/word',
    name: 'word',
    component: () => import('@/views/manager/Word.vue')
  },
  {
    path: '/category',
    name: 'category',
    component: () => import('@/views/manager/Category.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
})

export default router
